package com.lehecai.core.lottery.fetcher.lotterydraw.impl;

import com.lehecai.core.lottery.LotteryType;
import com.lehecai.core.lottery.fetcher.FetcherType;
import com.lehecai.core.lottery.fetcher.lotterydraw.LotteryDraw;
import com.lehecai.core.lottery.fetcher.lotterydraw.impl.worker.AbstractLotteryDrawFetchWorker;
import com.lehecai.core.lottery.fetcher.lotterydraw.impl.worker.LotteryDrawFetch562WorkerOfficial;
import com.lehecai.core.lottery.fetcher.lotterydraw.impl.worker.LotteryDrawFetch562WorkerQihoo;

/**
 * 上海11选5开奖结果抓取
 * @author He Wang
 *
 */
public class LotteryDrawFetcher562 extends BaseLotteryDrawFetcher{

    public LotteryDraw fetchOfficial(String phase) {
        AbstractLotteryDrawFetchWorker fetchWorker = new LotteryDrawFetch562WorkerOfficial();
        return fetchWorker.fetchResultDetail(phase);
    }

    public LotteryDraw fetchQihoo(String phase) {
        AbstractLotteryDrawFetchWorker fetchWorker = new LotteryDrawFetch562WorkerQihoo(LotteryType.SH11X5);
        return fetchWorker.fetchResultDetail(phase);
    }
	
	@Override
	protected FetcherType getDefaultFetcherType() {
		return FetcherType.T_OFFICIAL;
	}

}
